/*****************************************************************
 MYD Engine v0.1

 File: myd_sprite.inl
 Created: 26/06/09
*****************************************************************/

inline void Sprite::setTexture(Texture::Ptr tm_Texture)
{
	wn_Texture = tm_Texture;
}

inline const Texture::Ptr Sprite::getTexture() const
{
	return wn_Texture;
}

inline void Sprite::onCollide(Entity *entity)
{
	setSpeed(0);
}

inline void Sprite::toggleAnimation(bool toggle)
{
	if (toggle)
		currentAnim->play();
	else
		currentAnim->stop();
}